<div id="slider">
	<div class="swiper-container">
		<div class="swiper-wrapper">
		{if $zbp->Config('ydbaijia')->sliderstyle=='1'}
			{php}$array = explode(',',$zbp->Config('ydbaijia')->hdpid);{/php}
			{foreach $array as $key=>$id}{$post=GetPost((int)$id);}
			{if $zbp->CheckPlugin('IMAGE')}{php}IMAGE::getPics($post,774,340,4){/php}{/if}
			<div class="swiper-slide"><a href="{$post.Url}" target="_blank"><img src="{if $zbp->CheckPlugin('IMAGE') && $post->IMAGE_COUNT>0}{$post.IMAGE[0]}{else}{ydbaijia_thumbnail($post)}{/if}" alt="{$post.Title}"><p>{$post.Title}</p></a>
			</div>
			{/foreach}
		{else}
			{if $zbp->Config('ydbaijia')->homeSliderArray}
			{php} if(json_decode($homeSliderArray,true)){ $homeSliderArray = json_decode($homeSliderArray,true);} {/php} {foreach $homeSliderArray as $slider}
			<div class="swiper-slide"><a href="{$slider['url']}" target="_blank"><img src="{$slider['img']}" alt="{$slider['title']}"><p>{$slider['title']}</p></a>
			</div>
			{/foreach}
			{/if}
		{/if}
		</div>
		<!-- Add Pagination -->
		<div class="swiper-pagination"></div>
		<!-- Add Arrows -->
		<div class="swiper-button-next"></div>
		<div class="swiper-button-prev"></div>
	</div>
</div>